﻿<script>
  highlight_subnav('webstatistic');

</script>
<script type="text/javascript" src="/static/laydate/laydate.js"></script>
<script type="text/javascript">
	$(function(){
            laydate({
                elem: '#demo1'
            });
             laydate({
                elem: '#demo2'
            });
        })

    function checktime()
    {
        //检测时间
        var start_time = $('.start_time').val();
        var end_time = $('.end_time').val();
        if(start_time>end_time){
            alert('开始时间不能大于结束时间');
            return;
        }
        $('form').submit();
    }
</script>
<div class="tpl-content-wrapper">
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-cf">网站统计</div>
                            </div>
                            <div class="widget-body  am-fr" style="">
                                <div class="am-u-sm-12 am-u-md-12 am-u-lg-2">
                                    <div class="am-form-group">
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group">
                                                <a href="?a=1&start_time=<?php echo isset($_GET['start_time'])?$_GET['start_time']:'';?>&end_time=<?php echo isset($_GET['end_time'])?$_GET['end_time']:'';?>" class="am-btn am-btn-default am-btn-success" ><span class="am-icon-plus"></span> 导出</a>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                             
                                
                                <div class="am-u-sm-12">
                                    <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                                        <thead>
                                            <tr>
                                                <th>序号</th>
                                                <th>地址名</th>
                                                <th>访问次数</th>
                                                <th>最后访问时间</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        <?php foreach ($data as $k => $v) : ?>
                                            <tr class="gradeX">
                                                <td class="am-text-middle"><?php echo $v['id']?></td>
                                                <td class="am-text-middle"><?php echo $v['location_name']?></td>
                                                <td class="am-text-middle"><?php echo $v['number'];?></td>
                                                <td class="am-text-middle"><?php echo $v['create_time'];?></td>
                                            </tr>
                                         <?php endforeach; ?>   
                                            <!-- more data -->
                                        </tbody>
                                    </table>
                                </div>
                                <div class="am-u-lg-12 am-cf">

                                    <div class="am-fr" style="display: none;">
                                        <ul class="am-pagination tpl-pagination">
                                            <li class="am-disabled"><a href="#">«</a></li>
                                            <li class="am-active"><a href="#">1</a></li>
                                            <li><a href="#">2</a></li>
                                            <li><a href="#">3</a></li>
                                            <li><a href="#">4</a></li>
                                            <li><a href="#">5</a></li>
                                            <li><a href="#">»</a></li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
</div>
